// 定义路由路径
const routes = [
  {
    path: '/home',
    meta: { title: '首页', icon: 'el-icon-s-home' },
    component: () => import('@/views/index.vue')
  },
  {
    path: '/select-table',
    meta: { title: '下拉表格', icon: 'el-icon-s-data' },
    component: () => import('@/views/select-table')
  },
  {
    path: '/group-table',
    meta: { title: '分组表格', icon: 'el-icon-s-grid' },
    component: () => import('@/views/table/group-table/index.vue')
  },
  {
    path: '/right-manage',
    meta: { title: '三级不联动', icon: 'el-icon-finished' },
    component: () => import('@/views/right-manage')
  },
  {
    path: '/print',
    meta: { title: '打印', icon: 'el-icon-printer' },
    component: () => import('@/views/print/index.vue')
  },
  {
    path: '/map',
    meta: { title: '地图', icon: 'el-icon-location-information' },
    component: () => import('@/views/map/index.vue')
  },
  {
    path: '/drag-dialog',
    meta: { title: '弹窗拖动', icon: 'el-icon-rank' },
    component: () => import('@/views/drag-dialog/index.vue')
  },
  // 重定向
  // {
  //   path: '/',
  //   redirect: '/home'
  // }
]

export default routes;